[INFO] cloning repository https://github.com/xuerongNanopay/blockchain_rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xuerongNanopay/blockchain_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FxuerongNanopay%2Fblockchain_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FxuerongNanopay%2Fblockchain_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c3f90d6068944a1bf08f6a204233b1ff9ae483c9
[INFO] checking xuerongNanopay/blockchain_rust against try#8a2f6fe57adadb246778b8d41925d3dc46d468cb for pr-158320
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FxuerongNanopay%2Fblockchain_rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/xuerongNanopay/blockchain_rust
[INFO] finished tweaking git repo https://github.com/xuerongNanopay/blockchain_rust
[INFO] tweaked toml for git repo https://github.com/xuerongNanopay/blockchain_rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/xuerongNanopay/blockchain_rust on toolchain 8a2f6fe57adadb246778b8d41925d3dc46d468cb
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8a2f6fe57adadb246778b8d41925d3dc46d468cb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/xuerongNanopay/blockchain_rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8a2f6fe57adadb246778b8d41925d3dc46d468cb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded rustc-serialize v0.3.25
[INFO] [stderr]   Downloaded bitcoin_hashes v0.7.6
[INFO] [stderr]   Downloaded bitcoincash-addr v0.5.2
[INFO] [stderr]   Downloaded sled v0.34.7
[INFO] [stderr]   Downloaded rust-crypto v0.2.36
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] a1653a296d87481efdd3f146fc867f2f9b021135854c47d6a4dea6512818f204
[INFO] running `Command { std: "docker" "start" "a1653a296d87481efdd3f146fc867f2f9b021135854c47d6a4dea6512818f204", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a1653a296d87481efdd3f146fc867f2f9b021135854c47d6a4dea6512818f204" "/opt/rustwide/cargo-home/bin/cargo" "+8a2f6fe57adadb246778b8d41925d3dc46d468cb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a1653a296d87481efdd3f146fc867f2f9b021135854c47d6a4dea6512818f204", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a1653a296d87481efdd3f146fc867f2f9b021135854c47d6a4dea6512818f204" "/opt/rustwide/cargo-home/bin/cargo" "+8a2f6fe57adadb246778b8d41925d3dc46d468cb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]    Compiling proc-macro2 v1.0.78
[INFO] [stderr]    Compiling serde v1.0.197
[INFO] [stderr]     Checking anstyle-parse v0.2.3
[INFO] [stderr]     Checking colorchoice v1.0.0
[INFO] [stderr]     Checking anstyle v1.0.6
[INFO] [stderr]    Compiling gcc v0.3.55
[INFO] [stderr]     Checking anstyle-query v1.0.2
[INFO] [stderr]    Compiling anyhow v1.0.80
[INFO] [stderr]    Compiling serde_json v1.0.114
[INFO] [stderr]     Checking strsim v0.11.0
[INFO] [stderr]     Checking anstream v0.6.13
[INFO] [stderr]     Checking fxhash v0.2.1
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]     Checking crc32fast v1.4.0
[INFO] [stderr]     Checking bitcoin_hashes v0.7.6
[INFO] [stderr]     Checking clap_builder v4.5.2
[INFO] [stderr]     Checking rustc-serialize v0.3.25
[INFO] [stderr]     Checking ryu v1.0.17
[INFO] [stderr]     Checking log v0.4.21
[INFO] [stderr]     Checking sha2 v0.10.8
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]    Compiling rust-crypto v0.2.36
[INFO] [stderr]     Checking getrandom v0.2.12
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking parking_lot_core v0.8.6
[INFO] [stderr]    Compiling syn v2.0.52
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking time v0.1.45
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking fs2 v0.4.3
[INFO] [stderr]     Checking sled v0.34.7
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking merkle-cbt v0.3.2
[INFO] [stderr]     Checking rand v0.3.23
[INFO] [stderr]     Checking clap v4.5.2
[INFO] [stderr]    Compiling serde_derive v1.0.197
[INFO] [stderr]     Checking bitcoincash-addr v0.5.2
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking blockchain_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Wallets`
[INFO] [stdout]  --> src/transaction.rs:9:29
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::wallet::{Wallet, Wallets};
[INFO] [stdout]   |                             ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Wallets`
[INFO] [stdout]  --> src/transaction.rs:9:29
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::wallet::{Wallet, Wallets};
[INFO] [stdout]   |                             ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/blockchain.rs:307:31
[INFO] [stdout]     |
[INFO] [stdout] 307 |         block_chain.add_block("data".to_string());
[INFO] [stdout]     |                     --------- ^^^^^^^^^^^^^^^^^^ expected `Block`, found `String`
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/blockchain.rs:88:12
[INFO] [stdout]     |
[INFO] [stdout]  88 |     pub fn add_block(&mut self, block: Block) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^            ------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `TARGET_HEXT` is never used
[INFO] [stdout]  --> src/blockchain.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const TARGET_HEXT: usize = 4;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `find_unspent_transactions` is never used
[INFO] [stdout]    --> src/blockchain.rs:150:8
[INFO] [stdout]     |
[INFO] [stdout]  24 | impl Blockchain {
[INFO] [stdout]     | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 150 |     fn find_unspent_transactions(&self, address: &[u8]) -> Vec<Transaction> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `can_unlock_output_with` is never used
[INFO] [stdout]   --> src/tx.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | impl TXInput {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] 27 |     // checks whether the address initiated the transaction.
[INFO] [stdout] 28 |     pub fn can_unlock_output_with(&self, unlocking_data: &[u8]) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/blockchain.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 |     pub fn iter(&self) -> BlockchainIter {
[INFO] [stdout]     |                 ^^^^^     ^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 141 |     pub fn iter(&self) -> BlockchainIter<'_> {
[INFO] [stdout]     |                                         ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `spend_TXOs` should have a snake case name
[INFO] [stdout]    --> src/blockchain.rs:152:17
[INFO] [stdout]     |
[INFO] [stdout] 152 |         let mut spend_TXOs: HashMap<String, Vec<i32>> = HashMap::new();
[INFO] [stdout]     |                 ^^^^^^^^^^ help: convert the identifier to snake case: `spend_txos`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `unspend_TXs` should have a snake case name
[INFO] [stdout]    --> src/blockchain.rs:153:17
[INFO] [stdout]     |
[INFO] [stdout] 153 |         let mut unspend_TXs: Vec<Transaction> = Vec::new();
[INFO] [stdout]     |                 ^^^^^^^^^^^ help: convert the identifier to snake case: `unspend_txs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `find_UTXO` should have a snake case name
[INFO] [stdout]    --> src/blockchain.rs:195:12
[INFO] [stdout]     |
[INFO] [stdout] 195 |     pub fn find_UTXO(&self) -> HashMap<String, TXOutputs> {
[INFO] [stdout]     |            ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `prev_TXs` should have a snake case name
[INFO] [stdout]    --> src/blockchain.rs:257:13
[INFO] [stdout]     |
[INFO] [stdout] 257 |         let prev_TXs = self.get_prev_TXs(tx)?;
[INFO] [stdout]     |             ^^^^^^^^ help: convert the identifier to snake case: `prev_txs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused `std::result::Result` that must be used
[INFO] [stdout]    --> src/blockchain.rs:258:9
[INFO] [stdout]     |
[INFO] [stdout] 258 |         tx.sign(private_key, prev_TXs);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 258 |         let _ = tx.sign(private_key, prev_TXs);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_prev_TXs` should have a snake case name
[INFO] [stdout]    --> src/blockchain.rs:263:8
[INFO] [stdout]     |
[INFO] [stdout] 263 |     fn get_prev_TXs(&self, tx: &Transaction) -> Result<HashMap<String, Transaction>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_prev_txs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `prev_TXs` should have a snake case name
[INFO] [stdout]    --> src/blockchain.rs:264:17
[INFO] [stdout]     |
[INFO] [stdout] 264 |         let mut prev_TXs = HashMap::new();
[INFO] [stdout]     |                 ^^^^^^^^ help: convert the identifier to snake case: `prev_txs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `prev_TX` should have a snake case name
[INFO] [stdout]    --> src/blockchain.rs:266:17
[INFO] [stdout]     |
[INFO] [stdout] 266 |             let prev_TX = self.find_transaction(&vin.txid)?;
[INFO] [stdout]     |                 ^^^^^^^ help: convert the identifier to snake case: `prev_tx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `prev_TXs` should have a snake case name
[INFO] [stdout]    --> src/blockchain.rs:274:13
[INFO] [stdout]     |
[INFO] [stdout] 274 |         let prev_TXs = self.get_prev_TXs(tx)?;
[INFO] [stdout]     |             ^^^^^^^^ help: convert the identifier to snake case: `prev_txs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `new_UTXO` should have a snake case name
[INFO] [stdout]   --> src/transaction.rs:48:12
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub fn new_UTXO(wallet: &Wallet, to: &str, amount: i32, txSet: &UTXOSet) -> Result<Transaction> {
[INFO] [stdout]    |            ^^^^^^^^ help: convert the identifier to snake case: `new_utxo`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `txSet` should have a snake case name
[INFO] [stdout]   --> src/transaction.rs:48:61
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub fn new_UTXO(wallet: &Wallet, to: &str, amount: i32, txSet: &UTXOSet) -> Result<Transaction> {
[INFO] [stdout]    |                                                             ^^^^^ help: convert the identifier to snake case: `tx_set`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `prev_TXs` should have a snake case name
[INFO] [stdout]   --> src/transaction.rs:97:9
[INFO] [stdout]    |
[INFO] [stdout] 97 |         prev_TXs: HashMap<String, Transaction>,
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `prev_txs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `pre_Tx` should have a snake case name
[INFO] [stdout]    --> src/transaction.rs:115:17
[INFO] [stdout]     |
[INFO] [stdout] 115 |             let pre_Tx = prev_TXs.get(&tx_copy.vin[idx].txid).unwrap();
[INFO] [stdout]     |                 ^^^^^^ help: convert the identifier to snake case: `pre_tx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `prev_TXs` should have a snake case name
[INFO] [stdout]    --> src/transaction.rs:161:9
[INFO] [stdout]     |
[INFO] [stdout] 161 |         prev_TXs: HashMap<String, Transaction>
[INFO] [stdout]     |         ^^^^^^^^ help: convert the identifier to snake case: `prev_txs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `prev_Tx` should have a snake case name
[INFO] [stdout]    --> src/transaction.rs:176:17
[INFO] [stdout]     |
[INFO] [stdout] 176 |             let prev_Tx = prev_TXs.get(&self.vin[idx].txid).unwrap();
[INFO] [stdout]     |                 ^^^^^^^ help: convert the identifier to snake case: `prev_tx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `find_UTXO` should have a snake case name
[INFO] [stdout]    --> src/utxoset.rs:120:12
[INFO] [stdout]     |
[INFO] [stdout] 120 |     pub fn find_UTXO(&self, pub_key_hash: &[u8]) -> Result<TXOutputs> {
[INFO] [stdout]     |            ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `blockchain_rust` (bin "blockchain_rust" test) due to 1 previous error; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "a1653a296d87481efdd3f146fc867f2f9b021135854c47d6a4dea6512818f204", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a1653a296d87481efdd3f146fc867f2f9b021135854c47d6a4dea6512818f204", kill_on_drop: false }`
[INFO] [stdout] a1653a296d87481efdd3f146fc867f2f9b021135854c47d6a4dea6512818f204
